package com.example.goods.model.vo;

import com.example.common.validator.Insert;
import com.example.common.validator.Update;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

@Data
@EqualsAndHashCode()
@ToString
public class GoodsClassifyVO implements Serializable {

    @NotNull(groups = {Update.class}, message = "主键不能为空")
    private Long id;

    @NotBlank(groups = {Insert.class}, message = "商品分类名不能为空")
    private String name;
}
